package listener;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JButton;

import frame.mainFrame;
import panel.HomePage;
import panel.ScorePage;
import panel.ScorequduanPanel;
import panel.mainPanel;


public class ToolBarListener implements ActionListener{
	public void actionPerformed(ActionEvent e){
		mainPanel p=mainPanel.instance;
		JButton b=(JButton) e.getSource();
		if(b==p.score)
			p.workingPanel.show(ScorePage.instance);
	}
}
